#include <cmath>
#include <iostream>

class warehouse
{
protected:
  unsigned id_;
  int x_;
  int y_;
  unsigned c_;

public:
  warehouse (unsigned id, int x, int y, unsigned c);
  double dist (const warehouse& other) const;
  unsigned get_c () const;
  friend std::ostream& operator<< (std::ostream&, const warehouse& w);
};
